﻿using System.Activities.Presentation;
using System.Activities.Presentation.Services;
using System.Activities.Presentation.View;

namespace Headsight.BPMN2WF.WF.Impl
{
    public abstract class AbstractDesigner : IDesigner
    {
        protected abstract EditingContext GetEditingContext();

        public ModelService ModelService
        {
            get { return GetEditingContext().Services.GetService<ModelService>(); }
        }

        public ViewStateService ViewStateService
        {
            get { return GetEditingContext().Services.GetService<ViewStateService>(); }
        }

        public ViewService ViewService
        {
            get { return GetEditingContext().Services.GetService<ViewService>(); }
        }
    }
}
